package core.service;

import java.util.List;

import core.domain.IdEntity;

public interface Service<T extends IdEntity> {

	/**
	 * 
	 * @param oid
	 */
	public T findObject(long oid);

	
	/**
	 * 
	 * @param oids
	 * @return
	 */
	public List<T> findObjects(List<Long> oids);
	
	/**
	 * 
	 * @param entity
	 */
	public T remove(T entity);

	/**
	 * 
	 * @param entity
	 */
	public T store(T entity);

}